import request from '@/utils/request'

//  // 获取员工简单列表
export function getsimple() {
  return request({
    url: '/sys/user/simple'
  })
}

// 新增子部门
export function addDepartment(data) {
  return request({
    url: 'company/department',
    method: 'post',
    data
  })
}

// 获取部门详情数据
export function getDepartment(id) {
  return request({
    url: `/company/department/${id}`

  })
}

// 修改部门详情数据
export function updataDepartment(data) {
  return request({
    url: `/company/department/${data.id}`,
    method: 'put',
    data
  })
}
